一文搞定Mac开发环境配置

您所在的位置:网站首页 leapmotion开发环境配置 简书 一文搞定Mac开发环境配置

一文搞定Mac开发环境配置

2024-03-08 03:40| 来源: 网络整理| 查看: 265

换了台Mac新电脑无疑要重新配置环境,芯片Apple M1 Pro

安装idea

官网安装即可: https://www.jetbrains.com/zh-cn/idea/download/#section=mac 注意选择系统对应的芯片版本(通常会自动选择)

版本选择

安装JDK

传统的方式是下载后安装,但是idea其实可以直接下载安装省去了配置环境变量的烦恼

使用idea安装jdk 点击+号下载 选择你要的版本

下载安装完就搞定了直接可以用无需再配置~

安装Git

一样的原理Git也可以通过idea来集成安装

安装Maven

idea自带了Maven我觉得也好用就不安装了,找同事要一份setting文件配上就OK

下载Iterm3

iTerm官方网站:https://iterm2.com下载

安装ohmyzsh github安装 sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" ## gitee国内进行安装,适合没有fanqiang的小伙伴 sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"

看到如下图就成功了

安装成功 安装SwitchHosts

https://github.com/oldj/SwitchHosts/releases

选择版本

安装bloomRpc

调用GRPC的工具 https://github.com/bloomrpc/bloomrpc/releases

sublime安装json格式化插件

sublime自行官网安装

安装pretty json插件:

快捷键crtl+shift+p输入pc 安装包管理器

包管理器

输入pretty json搜索插件 crtl+shift+p输入pci,

安装插件管理器

然后,在弹出的如下图窗口中输入pretty json,搜到json后点击安装

安装json格式化

快捷键配置 安装后默认格式化json 快捷键:crtl+alt+j 如果输入后无法格式化,重新绑定一下快捷键: preferrnces ----> key bindings

[ { "keys": ["ctrl+alt+j"], "command": "pretty_json" } ] 安装homebrew

homebrew主要有四个部分组成:brew、homebrew-core、homebrew-cask、homebrew-bottles。

名称 说明 brew homebrew源代码仓库 homebrew-core homebrew核心源 homebrew-cask 提供macOS应用和大型二进制文件 homebrew-bottles 预编译的二进制软件包

安装

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

路径配置

(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/***/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"

更好镜像源

git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git brew update

安装wget brew install wget

安装telnet brew install telnet



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3